const TokenKey = 'token';
const ClientKey = 'ClientId';
import sync from "@/utils/sync";

export function getToken() {
  // return '9f448cdedcfe40878f79ab5038e01e0f'
  return localStorage.getItem(TokenKey)
}

export function setToken(token) {
  localStorage.setItem(TokenKey, token)
  sync.connect();
//  return localStorage.setItem(TokenKey, token)
}

export function removeToken() {
  return localStorage.removeItem(TokenKey)
}

export function getClientInfo() {
  // return '9f448cdedcfe40878f79ab5038e01e0f'
  return localStorage.getItem(ClientKey)
}

export function setClientInfo(ClientId) {
  return localStorage.setItem(ClientKey, ClientId)
}

export function removeClientInfo() {
  return localStorage.removeItem(ClientKey)
}
